package com.iob.coin.covid19kg;

import com.iob.coin.blImpl.kgqa.KgQAServiceImpl;
import com.iob.coin.covid19kg.dataset.DatasetManager;
import com.iob.coin.covid19kg.dataset.DatasetManagerLocalImpl;
import com.iob.coin.covid19kg.exceptions.AnswerException;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.Statement;
import org.apache.jena.vocabulary.RDF;
import org.apache.jena.vocabulary.RDFS;

import java.sql.SQLException;
import java.util.List;

public class Main {
    public static void main(String[] args) throws SQLException, AnswerException {
//        TDBDriver.register();

//        DruidDataSource source=new DruidDataSource();
//        source.setDriverClassName("org.apache.jena.jdbc.tdb.TDBDriver");
//        source.setDriverClassName("org.apache.jena.jdbc.remote.RemoteEndpointDriver");
//        source.setUrl("jdbc:jena:remote:query=http://localhost:3030/covid19/query");
//        source.setUrl(
//                "jdbc:jena:tdb:location="
//                        + DatasetConfig.COVID19_DATASET_PATH
//                        + "&must-exist=true"
//        );
//        source.setTestWhileIdle(false);

//        DatasetManager datasetManager = new DatasetManagerImpl(source);

//        KgQAServiceImpl kgQA = new KgQAServiceImpl();
//        kgQA.test();

//        System.out.println(RDFS.range.getURI());

//        QuestionTree a = new QuestionStrTree();
//        System.out.println(a.getClass().getName());

//        result.forEach(System.out::println);
    }

}
